<template>
	<div class="meun">
		<div  v-for="(item,index) in list" :class="{'list_area':index==0}" :key="item.id" :style="{background:'url('+require('@/'+item.bgurl)+')',backgroundSize:'100% 100%'}">
			<p>{{item.title}}</p>
			<span v-if="index==0">{{item.Personality}}</span>
		</div>
	</div>
</template>

<script>
	export default{
		name:'Meun',
		props:['meun_list'],
		data() {
			return{
				list:this.meun_list
			}
		},
		watch:{
			meun_list(){
				this.list=this.meun_list
			}
		}
	}
</script>

<style scoped>
	.meun{
		width: 95%;
		margin: 0 auto;
		border-radius: 0.5rem;
		height: 4rem;
	}
	.list_area{
		flex-direction: column;
		height: 67.5% !important;
	}
	.meun div p{
		font-size: 15.7px;
		font-weight: bold;
	}
	.list_area span{
		display: inline-block;
		padding: 0 0.15rem;
		background-color: #FFDD40;
		margin-top: 0.15rem;
		border-radius: 0.5rem;
		font-weight: bold;
	}
	.list_area,.meun div{
		display: flex;
		justify-content: center;
		align-items: center;
		float: left;
		width: 25%;
		border-bottom: 2px solid white;
	}
	.meun div{
		height: 33.33%;
	}
</style>
